package com.lic.demo.utils;

/**
 * Created by liChang on 2021/6/30
 */
public class ConvetUtil {

    /**
     * 十进制数组转换为十六进制字符串
     * @param decValue 十进制数组
     * @return 十六进制字符串
     */
    public static String ConvetToHex(byte[] decValue) {
        StringBuilder value = new StringBuilder();
        for (byte b : decValue) {
            value.append(Integer.toString((b & 0xff) + 0x100, 16).substring(1)).append(",");
        }
        return value.toString();
    }

}
